//
//  PortInProtocol.h
//  CocoaSynth
//
//  Created by Jérémy Brault on 06/02/10.
//  Copyright 2010 None. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ConnectorProtocol.h"
#import "SampleProtocol.h"

/*!
    @protocol	PortInProtocol
    @abstract	PortInProtocol declares a methods to read a sample from a port. A port could be linked with another port through a connector, thus, 
				read a sample is done by reading the connector's sample.
*/
@protocol PortInProtocol <NSObject>

/*!
    @method     setConnector
    @abstract   Change the connector the port is linked with.
    @param      connector	The new connector of the port.
*/
- (void)setConnector:(id<ConnectorProtocol>)aConnector;

/*!
    @method     getSample
    @abstract   Return the sample of the port.
    @result     The sample of the port.
*/
- (id<SampleProtocol>)getSample;

@end
